<?php

include_once 'ShopProductWriter.php';

/**
 * Description of TextProductWriter
 *
 * @author chalkers
 */
class TextProductWriter extends ShopProductWriter {

    public function write() {
        $str = "PRODUCTS: \n";
        foreach ($this->products as $shopProduct) {
            $str .= $shopProduct->getSummaryLine() . "\n";
        }
        print $str;
    }

}

?>
